﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _5.BinarySearchTree.BinarySearchTree
{
    public class BinaryNode<T>
    {
        public BinaryNode<T> Left { get; set; }
        public BinaryNode<T> Right { get; set; }
        public T Item { get; set; }

        private BinaryNode(T item, BinaryNode<T> left, BinaryNode<T> right)
        {
            this.Item = item;
            this.Left = left;
            this.Right = right;
        }

        public BinaryNode(T item)
            :this(item, null, null)
        {            
        }

        public BinaryNode()
            :this(default(T), null, null)
        { 
        }
    }
}
